package com.qst.dao;

import com.qst.pojo.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Eumenides.
 * @create 2021-06-10 16:19
 */
@Mapper
@Repository
public interface CustomerDao {
    /**
     * 通过姓名模糊查询
     *
     * @return list
     * @author Eumenides
     */
    @Select("select * from customer where username like concat('%', #{username}, '%');")
    List<Customer> findCustomerByName(String username);
}
